package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class CompanyIm implements Serializable {

	private static final long serialVersionUID = -6389406205644659095L;

	//fields
	private java.lang.Integer id;
	private java.lang.String type;
	private java.lang.String title;
	private java.lang.String account;
	private java.lang.Integer companyId;
	private java.sql.Timestamp createTime;
	private java.sql.Timestamp lastupdate;

	//default constructor
	public CompanyIm() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.String getType() {
		return type;
	}
	public java.lang.String getTitle() {
		return title;
	}
	public java.lang.String getAccount() {
		return account;
	}
	public java.lang.Integer getCompanyId() {
		return companyId;
	}
	public java.sql.Timestamp getCreateTime() {
		return createTime;
	}
	public java.sql.Timestamp getLastupdate() {
		return lastupdate;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setType(java.lang.String type) {
		this.type = type;
	}
	public void setTitle(java.lang.String title) {
		this.title = title;
	}
	public void setAccount(java.lang.String account) {
		this.account = account;
	}
	public void setCompanyId(java.lang.Integer companyId) {
		this.companyId = companyId;
	}
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}
	public void setLastupdate(java.sql.Timestamp lastupdate) {
		this.lastupdate = lastupdate;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof CompanyIm))
			return false;

		final CompanyIm im = (CompanyIm)other;
		if (!this.id.equals(im.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("CompanyIm[")
			.append("id=").append(id).append(", ")
			.append("type=").append(type).append(", ")
			.append("title=").append(title).append(", ")
			.append("account=").append(account).append(", ")
			.append("companyId=").append(companyId).append(", ")
			.append("createTime=").append(createTime).append(", ")
			.append("lastupdate=").append(lastupdate).append("]").toString();
	}
}